package cn.xm.lingshi.service;

import java.util.List;

import cn.xm.lingshi.pojo.DingDan;
import cn.xm.lingshi.pojo.GouWuChe;

/**
 * 订单业务接口
 * @author 魏魁
 *
 */
public interface OrderService {
	/**
	 * 查询订单或消费记录
	 * @param userid
	 * @param type
	 * @return
	 * @throws Exception
	 */
	public  List<DingDan> queryRecord(int offer, int pageSize, int userid,
			int type);
	
	/**
	 * 将购物车生成订单(1.添加成功，0，成功一半，-1，失败)
	 * @param cart
	 * @return
	 * @throws Exception
	 */
	public int addOrder(GouWuChe cart,String address);
}
